import {request} from '@/utils/request';

/**
 *房间信息查询床位
 */
export function listBmsBedApi(data: any) {
  return request({
    url: '/bms/bed/findBmsBedList',
    method: 'post',
    data,
  });
}

/**
 *房间信息查询床位
 */
export function listBmsBedPageApi(data: any) {
  return request({
      url: '/bms/bed/findBmsBedPageList',
      method: 'post',
      data,
    },
    {
      isDataDirectly: false,
    });
}

/**
 *添加床位
 */
export function addBmsBedApi(data: any) {
  return request({
    url: '/bms/bed/insertBmsBed',
    method: 'post',
    data,
  });
}

/**
 *删除床位
 */
export function deleteBmsBedApi(data: any) {
  return request({
    url: '/bms/bed/deleteBmsBed',
    method: 'post',
    data,
  });
}

/**
 *修改床位
 */
export function modifyBmsBedApi(data: any) {
  return request({
    url: '/bms/bed/modifyBmsBed',
    method: 'post',
    data,
  });
}